package com.code.view.listeners;

import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.ui.IWorkbenchWindow;

import com.code.generator.ExceputionUtils;


/**
 * 查看日志按钮点击事件
 *
 *
 * @author 朱国军
 * @version 2015年3月18日 朱国军
 */
public class ViewLogMouseListener implements MouseListener {
    private IWorkbenchWindow window;


    /**
     * 构造函数
     *
     * @param window 窗口
     */
    public ViewLogMouseListener(IWorkbenchWindow window) {
        this.window = window;
    }


    @Override
    public void mouseDoubleClick(MouseEvent e) {

    }


    @Override
    public void mouseDown(MouseEvent e) {

    }


    @Override
    public void mouseUp(MouseEvent e) {
        ExceputionUtils.readLog(window);

    }

}
